package tools;

import java.io.IOException;
import java.util.Properties;

public class Config {
	private Properties config;
	private String filename = "./config.properties";
	
	public Config()
	{
		config = new Properties();
		try {
			config.load(this.getClass().getClassLoader().getResourceAsStream(filename));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	public Object SetProperty(String key, String value)
	{
		return config.setProperty(key, value);
	}
	public String GetProperty(String key)
	{
		return config.getProperty(key);
	}
}
